package com.jiajia.study;

import com.jiajia.study.Service.MessageService;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.Resource;

/**
 * @Title: Application
 * @Author zjj
 * @Package com.jiajia.study
 * @Date 2024/3/6 16:27
 * @description: 启动类
 */
@SpringBootApplication
public class Application implements ApplicationRunner {
    @Resource
    MessageService messageService;

    public static void main(String[] args) {
        SpringApplication.run(Application.class,args);
    }

    @Override
    public void run(ApplicationArguments args) throws Exception {
        messageService.sendMessage("hello, direct exchange ...... ");
    }
}
